package main

import (
	"fmt"
	"path/filepath"
)

func main() {
	path1 := "E:\\CMSS\\sdsom部署后配置文件\\sdsom\\etc\\version"
	path2 := "E:\\Media\\Movies\\carib-122218-816\\carib-122218-816.mp4"
	fmt.Println(filepath.Abs(path1))
	fmt.Println(filepath.Abs("."))
	fmt.Println(filepath.Abs(".."))
	fmt.Println(filepath.IsAbs(path2))
	fmt.Println(filepath.Rel("E:\\Media", path2))
	fmt.Println(filepath.Join(path1, ".."))
	fmt.Println(filepath.Join(path1, "."))
	fmt.Println(filepath.Join(filepath.Join(path1, ".."), "aaaa"))
}
